package sData

import (
	"encoding/json"
)

type CfgSys_open struct {
	_cfg_id			int64
	_condition			string
}

func (myself *CfgSys_open) GetTableName() string {
    return "sys_open"
}
/**
 * 
 */
func (myself *CfgSys_open) GetCfg_id() int64 {
	return myself._cfg_id
}

/**
 * 
 */
func (myself *CfgSys_open) GetCondition(v interface{}) interface{} {
        json.Unmarshal([]byte(myself._condition),v)
    return v
}

func NewCfgSys_open(row []interface{}) interface{} {
	newObj := &CfgSys_open{}
	if row==nil {return newObj}
	newObj._cfg_id = int64(row[0].(float64))
	tmp_1,_ := json.Marshal(row[1].(map[string]interface {}))
	newObj._condition = string(tmp_1)
	return newObj
}

const (
	TableSys_openName = "sys_open"
)